import service from '@/utils/request'

// @Tags GameServer
// @Summary 创建gameServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameServer true "创建gameServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /gameServer/createGameServer [post]
export const createGameServer = (data) => {
  return service({
    url: '/gameServer/createGameServer',
    method: 'post',
    data
  })
}

// @Tags GameServer
// @Summary 删除gameServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameServer true "删除gameServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameServer/deleteGameServer [delete]
export const deleteGameServer = (params) => {
  return service({
    url: '/gameServer/deleteGameServer',
    method: 'delete',
    params
  })
}

// @Tags GameServer
// @Summary 批量删除gameServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除gameServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameServer/deleteGameServer [delete]
export const deleteGameServerByIds = (params) => {
  return service({
    url: '/gameServer/deleteGameServerByIds',
    method: 'delete',
    params
  })
}

// @Tags GameServer
// @Summary 更新gameServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameServer true "更新gameServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameServer/updateGameServer [put]
export const updateGameServer = (data) => {
  return service({
    url: '/gameServer/updateGameServer',
    method: 'put',
    data
  })
}

// @Tags GameServer
// @Summary 用id查询gameServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameServer true "用id查询gameServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameServer/findGameServer [get]
export const findGameServer = (params) => {
  return service({
    url: '/gameServer/findGameServer',
    method: 'get',
    params
  })
}

// @Tags GameServer
// @Summary 分页获取gameServer表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取gameServer表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameServer/getGameServerList [get]
export const getGameServerList = (params) => {
  return service({
    url: '/gameServer/getGameServerList',
    method: 'get',
    params
  })
}
